package kafka.listener;

import kafka.service.KafkaConsumer;
import org.springframework.boot.context.event.ApplicationStartedEvent;
import org.springframework.context.ApplicationListener;

/**
 * spring boot 启动监听类
 * 
 * @author liaokailin
 * @version $Id: MyApplicationStartedEventListener.java, v 0.1 2015年9月2日 下午11:06:04 liaokailin Exp $
 */
public class MyApplicationStartedEventListener implements ApplicationListener<ApplicationStartedEvent> {

    //private Logger logger = LoggerFactory.getLogger(MyApplicationStartedEventListener.class);

    @Override
    public void onApplicationEvent(ApplicationStartedEvent event) {
    	System.out.println("=============监听成功！最后执行的我=================");
//        new KafkaConsumer().consume();
        //SpringApplication app = event.getSpringApplication();
        //app.setShowBanner(false);// 不显示banner信息
        //logger.info("==MyApplicationStartedEventListener==");
    }
}
